package com.powernode.mapper;

import com.powernode.annotation.DataScope;
import com.powernode.domain.Customer;
import com.powernode.model.BaseQuery;
import com.powernode.vo.CustomerVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_customer(客户表)】的数据库操作Mapper
* @createDate 2025-02-18 10:09:27
* @Entity com.powernode.domain.Customer
*/
public interface CustomerMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    @DataScope(tableAlias = "tc",tableField = "ownerId")
    List<CustomerVo> selectList(BaseQuery baseQuery);

    List<Customer> selectAllCustomerList();
}
